<?php
/**
 * @var \Html
 */
$html = $html ? $html : new \Html();
//print_r($html->CSS);
//print_r($html->getCss());
//print_r($html->TOP_JS);
//print_r($html->getTopScript());
//print_r($html->BOT_JS);
//print_r($html->getBottomScript());
?>
<!doctype html>
<html lang="<?= $html->lang;?>">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta content="text/html; charset=<?= $html->charset;?>" http-equiv="Content-Type">
    <title><?= $html->title;?></title>
    <meta name="description" content="<?= $html->description;?>">
    <meta name="Keywords" content="<?= $html->keywords;?>">
    <?php //禁止搜索引擎抓取和收录?>
    <meta name="robots" content="noarchive">

    <?php
    if($src_css = $html->getCss()){
        foreach($src_css as $src){
            ?>
            <link type="text/css" rel="stylesheet" media="screen" href="<?= $src;?>" />
            <?php
        }
    }
    ?>
    <?php
    if($src_s = $html->getTopScript()){
        foreach($src_s as $src){
            ?>
            <script type="text/javascript" src="<?= $src?>"></script>
        <?php }}?>
</head>
<body <?= $html->tplBodyExt?>>
<?php if($html->tplTop){?>
    <div id="top">
        <?php require $html->tplTop; ?>
    </div>
    <?php
}
if($html->tplContent){
    ?>
    <div id="content">
        <?php require $html->tplContent; ?>
    </div>
    <?php
}
if($html->tplBottom){
    ?>
    <div id="bottom">
        <?php require $html->tplBottom; ?>
    </div>
    <?php
}
?>
<?php
if($src_s = $html->getBottomScript()){
    foreach($src_s as $src){
        ?>
        <script type="text/javascript" src="<?= $src?>"></script>
    <?php }}?>

<i>文件大框架位于：<?= $this->data['tplMainPage'];?></i>

<?= (!empty($this->data['footerCode']) ? $this->data['footerCode'] : ''); //页面最底部的散装代码，包括js,html代码等?>
</body>
</html>
